Skip to content

Issue 6702: add isSuperUser in AuthorizationProvider interface - #6708

Merged
sijie merged 2 commits into
apache:masterfrom
jiazhai:issue_6702
Apr 13, 2020
Merged

Issue 6702: add isSuperUser in AuthorizationProvider interface#6708
sijie merged 2 commits into
apache:masterfrom
jiazhai:issue_6702

Conversation

@jiazhai

@jiazhai jiazhai commented Apr 10, 2020

Copy link
Copy Markdown
Member

Fixes #6702

Motivation

Most of the methods in AuthorizationProvider take AuthenticationDataSource for authorization decision. However isSuperUser still takes the string role token. This has to be changed.

Modifications

Add needed method

@jiazhai jiazhai self-assigned this Apr 10, 2020
@codelipenghui

Copy link
Copy Markdown
Contributor

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.6.0 milestone Apr 10, 2020
@jiazhai

jiazhai commented Apr 11, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

1 similar comment
@jiazhai

jiazhai commented Apr 11, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@sijie

sijie commented Apr 12, 2020

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

1 similar comment
@jiazhai

jiazhai commented Apr 13, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@sijie
sijie merged commit 797d89b into apache:master Apr 13, 2020
jiazhai added a commit that referenced this pull request Jun 24, 2020
### Motivation
In #6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And #6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`
codelipenghui pushed a commit to streamnative/pulsar-archived that referenced this pull request Jul 14, 2020
### Motivation
In apache#6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And apache#6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`

(cherry picked from commit 45afb56)
cdbartholomew pushed a commit to kafkaesque-io/pulsar that referenced this pull request Jul 21, 2020
### Motivation
In apache#6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And apache#6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`
cdbartholomew pushed a commit to kafkaesque-io/pulsar that referenced this pull request Jul 24, 2020
### Motivation
In apache#6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And apache#6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`
wolfstudy pushed a commit that referenced this pull request Jul 29, 2020
### Motivation
In #6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And #6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`

(cherry picked from commit 45afb56)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…e#6708)

Fixes apache#6702

### Motivation

Most of the methods in AuthorizationProvider take AuthenticationDataSource for authorization decision. However isSuperUser still takes the string role token. This has to be changed.

### Modifications

Add needed method
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
### Motivation
In apache#6708, we change to use `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)` for the dynamic check of superuser using AuthenticationDataSource. And apache#6428 is using old method  `isSuperUser(String, ServiceConfiguration)`,
This change tries to change it back.

### Modifications

switch `isSuperUser(String, ServiceConfiguration)` to `isSuperUser(String, AuthenticationDataSource, ServiceConfiguration)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Authorization] Authorization provider should accept AuthenticationDataSource rather than a string role token

3 participants